/**
 * @author xinjie.txt
 * @time: 2020年7月6日 下午3:25:38
 */
package com.jiepu.daily.corejava.day0708;

/**
 * @Description:
 * @author xinjie.txt
 */
public class Teacher {

	private int id; // 属性【工号】
	private String name; // 属性【姓名】
	private int age; // 属性【年龄】
	private String gender; // 属性【性别】
	private double salary; // 属性【工资】

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age
	 *            the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @return the gender
	 */
	public String getGender() {
		return gender;
	}

	/**
	 * @param gender
	 *            the gender to set
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}

	/**
	 * @return the salary
	 */
	public double getSalary() {
		return salary;
	}

	/**
	 * @param salary
	 *            the salary to set
	 */
	public void setSalary(double salary) {
		this.salary = salary;
	}

	/**
	 * 
	 */
	public Teacher() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param id
	 * @param name
	 * @param age
	 * @param gender
	 * @param salary
	 */
	public Teacher(int id, String name, int age, String gender, double salary) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.gender = gender;
		this.salary = salary;
	}

	/**
	 * 
	 * @Description:
	 */
	public void work() {
		System.out.println("working");
	}

	/**
	 * 
	 * @Description:
	 * @param teacher
	 */
	public void introduce(Teacher teacher) {
		System.out.println("工号: " + teacher.getId() + "\t姓名: " + teacher.getName() + "\t年龄: " + teacher.getAge()
				+ "\t工资： " + teacher.getSalary());
	}

}
